package com.example.mymultiactivityapp

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView

class SecondActivity1 : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_second1)

        val receivedData = intent.getStringExtra("forward_data")
        findViewById<TextView>(R.id.tv_received_data).text =
            getString(R.string.received_data, receivedData ?: "无数据")
    }
}